<template>
  <div>Home</div>
  <span>通过getters获取属性 {{ $store.getters.nameInfo }}</span>
  <br />
  <span>通过mapGetters获取属性ageInfo  {{ ageInfo }}</span>
  <br />
  <span>通过mapGetters获取属性SheightInfo  {{ SheightInfo }}</span>
</template>

<script>
import { mapGetters } from 'vuex'
export default {
  computed: {
    ...mapGetters(['ageInfo']),
    ...mapGetters({
      SheightInfo: 'heightInfo',
    }),
  },
}
</script>

<style lang="scss" scoped></style>
